package com.mutouren.modules.sso.model;

import java.util.Date;

import com.mutouren.common.entity.ValidState;

public class Register {
	
	private Integer appId;
	private String appAlias;
	private String appName;
	private String appUrl;
	private String appSecret;
	private ValidState validState;
	private Date createTime;
	private Date updateTime;
	
	public Register() {
		this.validState = ValidState.Normal;
	}	
	public Register(ValidState validState) {
		this.validState = validState;
	}
	
	public Integer getAppId() {
		return appId;
	}
	public void setAppId(Integer appId) {
		this.appId = appId;
	}
	public String getAppAlias() {
		return appAlias;
	}
	public void setAppAlias(String appAlias) {
		this.appAlias = appAlias;
	}
	public String getAppName() {
		return appName;
	}
	public void setAppName(String appName) {
		this.appName = appName;
	}
	public String getAppSecret() {
		return appSecret;
	}
	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}
	public String getDisplayValidState() {
		return ValidState.display(validState);
	}	
	public ValidState getValidState() {
		return validState;
	}
	public void setValidState(ValidState validState) {
		this.validState = validState;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getAppUrl() {
		return appUrl;
	}
	public void setAppUrl(String appUrl) {
		this.appUrl = appUrl;
	}	
}
